package Comprehensive_01;

public class Demo4 {
    public static void main(String[] args) {
        String str = "12345678910";
        String s = str.replaceAll("(?<=\\d{3})\\d{4}(?=\\d{4})", "****");
        System.out.println(s);
    }
}
